
import 'package:get/get.dart';
import 'package:myapp/app/data/api/providers/api_provider.dart';
import 'package:myapp/app/data/entities/article_item.dart';

abstract class IInfoRepository {

  Future<List<ArticleItem>> getArticleList();
}

class InfoRepository implements IInfoRepository {

  final _apiProvider = Get.find<ApiProvider>();

  @override
  Future<List<ArticleItem>> getArticleList() async {
    return _apiProvider.getArticleList();
  }

}